import Mock from 'mockjs'
export default {
  // 获取直播列表
  getUser: () => {
    return Mock.mock({
      status: '200',
      msg: '请求成功',
      'data|30': [
        {
          name: '@cname',
          'phone|11': '@integer(0,9)',
          city: '@city'
        }
      ]
    })
  },
  obj: () => {
    return Mock.mock({
      'data|30': [{
        id: '@id()',
        username: '@cname',
        title: '@ctitle( 10, 40? )',
        date: '@date()',
        avatar: '@image("200x200", "red", "#fff", "gobest")',
        des: '@paragraph',
        ip: '@ip',
        ping: '@natural( 1000, 10000? )',
        zan: '@natural( 1000, 10000? )',
        email: '@email'
      }]
    })
  }
}
